package com.qinghe.pro.util.log;

public class LogMessageObject {

	private boolean isWritten = true;// 是否写入log，默认为true

	private Object[] objects;// message对象参数

	public LogMessageObject() {
	}

	public LogMessageObject(boolean isWritten) {
		this.isWritten = isWritten;
	}

	public LogMessageObject(boolean isWritten, Object[] objects) {
		this.isWritten = isWritten;
		this.objects = objects;
	}

	public static LogMessageObject newWrite() {
		return new LogMessageObject(true);
	}

	public static LogMessageObject newIgnore() {
		return new LogMessageObject(false);
	}

	public boolean isWritten() {
		return isWritten;
	}

	public LogMessageObject setWritten(boolean isWritten) {
		this.isWritten = isWritten;
		return this;
	}

	public Object[] getObjects() {
		return objects;
	}

	public LogMessageObject setObjects(Object[] objects) {
		this.objects = objects;
		return this;
	}

}
